package pl.p04;

import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.Token;

public class MyToken extends CommonToken {
  private static final long serialVersionUID = -6879383864188049636L;
  public String             fileName         = null;

  public MyToken(int type) {
    super(type);
  }// Constructor

  public MyToken(CharStream input, int type, int channel, int start, int stop) {
    super(input, type, channel, start, stop);
  }// Constructor

  public MyToken(int type, String text) {
    super(type, text);
  }// Constructor

  public MyToken(Token oldToken) {
    super(oldToken);
  }// Constructor

  public String getFileName(String fileName) {
    return fileName;
  }// getFileName

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }// setFileName

  @Override
  public String toString() {
    return "[source='" + fileName + "']" + super.toString();
  }// toString

}// MyToken

